home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _696044FBCB8E4179BC24AD51B4A4D8C4 < prev    next >
Encoding:
Text File  |  2004-01-06  |  2.0 KB  |  83 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R3xx / NVidia NV3X (PS.2.0 / PS.2.X only)
  9.  
  10. // Diffuse bump-mapping with fresnel real-time env CM reflections (alpha channel of diffuse texture)
  11. // At least two passes for multiple light sources
  12. // One pass for single light source
  13.  
  14. // Supports:
  15. // 1. Dot3 light maps
  16. // 2. Simple light maps
  17. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  18. // 4. Stencil shadows
  19. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  20. // 6. Optimised separate techniques for Single/Multiple light sources
  21.  
  22. /*Shader 'TemplBumpDiffuse_GlossAlpha_EnvCMSpec_RT_PS20'
  23. (
  24.    Params
  25.   {
  26.     Sort = Opaque
  27.   }
  28.   Public
  29.   (
  30.     float 'EnvMapContrast' (0)
  31.     float 'EnvMapSaturation' (1)
  32.     float 'EnvMapAmount' (1)
  33.     float 'FresnelScale' (1)
  34.     float 'FresnelBias' (0)
  35.     float 'FresnelPow' (5)
  36.   )
  37.   RenderParams
  38.   {
  39.     DrawFarSprites
  40.     DrawStaticObjects
  41.     DrawParticles
  42.     DrawEntities
  43.     DrawIndoors
  44.     DrawDetailTextures
  45.     FullDetailTerrain
  46.     DrawWater
  47.     DrawTerrain
  48.   }
  49.  
  50.   #define $ENVCMAP $EnvironmentCubeMap
  51.   #include "BumpDiffuse_GlossAlpha_EnvCMSpec_PS20.csi"
  52.   #undefine $ENVCMAP
  53. )*/
  54.  
  55. Shader 'TemplBumpDiffuse_GlossAlpha_EnvCMSpec_RT_PS20'
  56. (
  57.   Params
  58.   {
  59.     Sort = Opaque
  60.   }
  61.  
  62.   #define %DIFFUSE 0x1
  63.   #define %DIFFUSE_PERPIXEL 0x8000
  64.   #define %GLOSS_DIFFUSEALPHA 0x20
  65.   #define %ENVCMSPEC 0x80
  66.   #define %PROJLIGHT_PERPIXELATTEN 0x100
  67.   #define %RTCUBEMAP 0x10000
  68.   #define %BUMP_MAP 0x1000
  69.   
  70.   #include "IllumTemplate.csi"
  71.   
  72.   #undefine %BUMP_MAP
  73.   #undefine %RTCUBEMAP
  74.   #undefine %PROJLIGHT_PERPIXELATTEN
  75.   #undefine %ENVCMSPEC
  76.   #undefine %GLOSS_DIFFUSEALPHA
  77.   #undefine %DIFFUSE_PERPIXEL
  78.   #undefine %DIFFUSE
  79. )
  80.  
  81. //=========================================================================================
  82.  
  83.